<form action="views/create/{$entity->id}/" method="post" enctype="multipart/form-data">

  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal">×</button>
    <h3>Create View</h3>
  </div>

  <div class="modal-body">

    <div class="input-prepend">
      <label for="name">View Name</label>
      <span class="add-on">{$entity->singular}_</span><input id="name" name="name" class="span2" type="text" required="required" />
    </div>

    <div class="control-group">
      <label for="description">Description</label>
      <textarea id="description" name="description" class="input-xlarge"></textarea>
    </div>

    <div class="control-group">
      <label for="layout">Layout</label>
      <select name="layout" class="input-xlarge" required="required">
        <option value="one" selected="selected">One layout</option>
        <option value="other">Other layout</option>
      </select>
    </div>

  </div>
  <!-- .modal-body -->

  <div class="modal-footer">
    <button type="submit" class="btn btn-primary">Create and edit view</button>
  </div>
  
</form>
